package com.igeek.health.dto;

import java.io.Serializable;

/**
 * @Author chenmin
 * @Description 封装分页查询条件
 */
public class PageDTO implements Serializable {

    //当前页码
    private Integer currentPage;
    //每页记录数
    private Integer pageSize;
    //查询条件
    private String queryString;

    public PageDTO() {
    }

    public PageDTO(Integer currentPage, Integer pageSize, String queryString) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.queryString = queryString;
    }

    /**
     * 获取
     * @return currentPage
     */
    public Integer getCurrentPage() {
        return currentPage;
    }

    /**
     * 设置
     * @param currentPage
     */
    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    /**
     * 获取
     * @return pageSize
     */
    public Integer getPageSize() {
        return pageSize;
    }

    /**
     * 设置
     * @param pageSize
     */
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获取
     * @return queryString
     */
    public String getQueryString() {
        return queryString;
    }

    /**
     * 设置
     * @param queryString
     */
    public void setQueryString(String queryString) {
        this.queryString = queryString;
    }

    public String toString() {
        return "PageDTO{currentPage = " + currentPage + ", pageSize = " + pageSize + ", queryString = " + queryString + "}";
    }
}
